export function hasAdalToken () {
  return window.localStorage.getItem('adal.idtoken') &&
    window.localStorage.getItem('adal.token.renew.statushttps://graph.microsoft.com') === 'Completed' &&
    window.localStorage.getItem('adal.token.renew.status93e341b0-50d7-4762-a3e6-70c9bcfaefdc') === 'Completed'
}

export function hasAdalIframe () {
  return document.getElementById('adalRenewFramehttps://graph.microsoft.com')
}

export function isInIframe () {
  return window.self !== window.top
}
